package com.riven.redisson.concurrent;

import java.util.concurrent.locks.Lock;

/**
 * @author riven
 * @since 2025-05-22
 */
public interface LockProvider {
    /**
     * 尝试取锁
     *
     * @param subject 锁定的主体
     * @return true/false
     */
    Lock getLock(Object subject);

}
